package com.crm.system.service.impl.permissionManagement;

import com.crm.model.entity.sys.permissionManagement.SysMenuPermission;
import com.crm.service.sys.permissionManagement.SysMenuPermissionDbService;
import com.crm.system.service.permissionManagement.SysMenuPermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ Author ：pym
 * @ Date   ：2020/12/9 22:04
 */
@Service
public class SysMenuPermissionServiceImpl implements SysMenuPermissionService {
    @Autowired
    SysMenuPermissionDbService sysMenuPermissionDbService;

    @Override
    public Boolean deleteSysMenuPermissionByPGId(String permissionGroupId) {
        return sysMenuPermissionDbService.deleteSysMenuPermissionByPGId(permissionGroupId);
    }

    @Override
    public List<String> selectMenuPermissionIdList(String permissionGroupId) {
        return sysMenuPermissionDbService.selectMenuPermissionIdList(permissionGroupId);
    }

    @Override
    public List<SysMenuPermission> selectSysMenuPermissionList(String permissionGroupId) {
        return sysMenuPermissionDbService.selectSysMenuPermissionList(permissionGroupId);
    }
}
